import request from '@/api/http/request.js';

/**
 *获取专题
 */
export const login = (data) =>
  request({
    url: '/api/auth/login',
    method: 'post',
    params: data
  });
export const userDetails = (params) =>
  request(
    {
      url: '/api/users/getUser',
      method: 'get',
      params: params
    },
    null,
    { text: '正在保存数据' }
  );

export const getLogout = (params) =>
  request(
    {
      url: '/api/users/logout',
      method: 'get',
      params: params
    },
    null
  );
